namespace Vin.Extension.Alibaba.Market.Options;

public class BaseOption
{
    /// <summary>
    /// 请求的基础URL
    /// </summary>
    public string BaseUrl { get; set; } = string.Empty;

    /// <summary>
    /// 应用的AppKey
    /// </summary>
    public string AppKey { get; set; } = string.Empty;

    /// <summary>
    /// 应用的AppSecret
    /// </summary>
    public string AppSecret { get; set; } = string.Empty;

    /// <summary>
    /// 应用的AppCode
    /// </summary>
    public string AppCode { get; set; } = string.Empty;

    public bool CheckHaveBase => !string.IsNullOrWhiteSpace(BaseUrl)
                                 && !string.IsNullOrWhiteSpace(AppKey)
                                 && !string.IsNullOrWhiteSpace(AppSecret)
                                 && !string.IsNullOrWhiteSpace(AppCode);
}